package br.tiagohm.markdownview.css.styles;

public class Github extends Bootstrap {
    public Github() {
        addRule("body", "line-height: 1.6", "padding: 0px");
        addRule("span","color: #3F51B5");
        addRule("h1", "font-size: 28px");
        addRule("h2", "font-size: 24px");
        addRule("h3", "font-size: 18px");
        addRule("h4", "font-size: 16px");
        addRule("h5", "font-size: 14px");
        addRule("h6", "font-size: 14px");
        addRule("pre", "position: relative", "padding: 14px 10px", "border: 0", "border-radius: 3px", "background-color: #202020");
        addRule("pre code", "position: relative", "line-height: 1.45", "background-color: transparent");
        addRule("table tr:nth-child(2n)", "background-color: #f6f8fa");
        addRule("table th", "padding: 6px 13px", "border: 1px solid #dfe2e5");
        addRule("table td", "padding: 6px 13px", "border: 1px solid #dfe2e5");
        addRule("kbd", "color: #444d56", "font-family: Consolas, \"Liberation Mono\", Menlo, Courier, monospace",
                "background-color: #fcfcfc", "border: solid 1px #c6cbd1",
                "border-bottom-color: #959da5", "border-radius: 3px", "box-shadow: inset 0 -1px 0 #959da5");
        addRule("pre[language]::before", "content: attr(language)", "position: absolute", "top: 0", "right: 5px", "padding: 2px 1px",
                "text-transform: uppercase", "color: #666", "font-size: 8.5px");
        addRule("pre:not([language])", "padding: 6px 10px");
        addRule(".footnotes li p:last-of-type", "display: inline");
        addRule(".yt-player", "box-shadow: 0px 0px 12px rgba(0,0,0,0.2)");
        addRule(".scrollup", "background-color: #00BF4C");

        //Highlight.js

        addRule(".hljs-comment", "color: #8e908c");
        addRule(".hljs-quote", "color: #8e908c");

        addRule(".hljs-variable", "color: #c82829");
        addRule(".hljs-template-variable", "color: #c82829");
        addRule(".hljs-tag", "color: #c82829");
        addRule(".hljs-name", "color: #c82829");
        addRule(".hljs-selector-id", "color: #c82829");
        addRule(".hljs-selector-class", "color: #c82829");
        addRule(".hljs-regexp", "color: #c82829");
        addRule(".hljs-deletion", "color: #c82829");

        addRule(".hljs-number", "color: #f5871f");
        addRule(".hljs-built_in", "color: #f5871f");
        addRule(".hljs-builtin-name", "color: #f5871f");
        addRule(".hljs-literal", "color: #f5871f");
        addRule(".hljs-type", "color: #f5871f");
        addRule(".hljs-params", "color: #f5871f");
        addRule(".hljs-meta", "color: #f5871f");
        addRule(".hljs-link", "color: #f5871f");

        addRule(".hljs-attribute", "color: #eab700");

        addRule(".hljs-string", "color: #718c00");
        addRule(".hljs-symbol", "color: #718c00");
        addRule(".hljs-bullet", "color: #718c00");
        addRule(".hljs-addition", "color: #718c00");

        addRule(".hljs-title", "color: #4271ae");
        addRule(".hljs-section", "color: #4271ae");

        addRule(".hljs-keyword", "color: #8959a8");
        addRule(".hljs-selector-tag", "color: #8959a8");


        addRule("pre,xmp,plaintext,listing","display: block");
        addRule(".token.keyword","color: #39c");
        addRule(".token.function","color: #eeaa00");
        addRule(".token.punctuation","color: #a67f59");
        addRule(".token.operator","color: #eeaa00");
        addRule(".token.comment","color: #43a943");
        addRule(".token.string","color: #ffffff");
        addRule(".token.number","color: #a67f59");
        addRule(".token.class-name","color: white");
        addRule(".token.tag","color: #a67f59");
        addRule(".token.namespace","color: #ffffff");
        addRule(".token.attr-name","color: #ffffff");
        addRule(".token.attr-value","color: #39c");
        addRule(".token.prolog","color: #43a943");
        addRule("pre[class*=\"language-\"],code[class*=\"language-\"]","background: #202020");
        addRule("pre[class*=\"language-\"]","padding: 1em","margin: .5em 0","overflow: auto");
        addRule("pre[class*=\"language-\"],code[class*=\"language-\"]","color: white","text-shadow: none","font-family: Consolas, Monaco, \'Andale Mono\', \'Ubuntu Mono\', monospace",
                "direction: ltr","text-align: left","white-space: pre","word-spacing: normal","word-break: normal","word-wrap: normal","line-height: 1.5","tab-size: 4","hyphens: none");

    }
}
